package com.iqiyi.pps.epg.core.model.push;

/**
 * Created by zhang on 2016/1/29.
 */
public enum PassportAgentTypeEnum {
    OTHER(-1),QIYIIOSIPHONE(20),QIYIIOSIPAD(23),QIYIANDRIODPHONE(21),QIYIANDRIODPAD(24),PPSIOSIPHONE(33),PPSIOSIPAD(34),PPSANDRIODPHONE(35),PPSANDRIODPAD(36);

    private int agentTypeId;

    PassportAgentTypeEnum(int agentTypeId) {
        this.agentTypeId = agentTypeId;
    }

    public int getAgentTypeId() {
        return agentTypeId;
    }

    public void setAgentTypeId(int agentTypeId) {
        this.agentTypeId = agentTypeId;
    }

    public static PassportAgentTypeEnum valueOf(Integer agentTypeId) {
        switch (agentTypeId) {
            case 20:
                return QIYIIOSIPHONE;
            case 23:
                return QIYIIOSIPAD;
            case 21:
                return QIYIANDRIODPHONE;
            case 24:
                return QIYIANDRIODPAD;
            case 33:
                return PPSIOSIPHONE;
            case 34:
                return PPSIOSIPAD;
            case 35:
                return PPSANDRIODPHONE;
            case 36:
                return PPSANDRIODPAD;
            default:
                return OTHER;
        }
    }

    @Override
    public String toString() {
        return String.valueOf(this.agentTypeId);
    }
}
